<?
    require_once("config.php");
    
    if ($_GET['success']) {
        Functions::PrintHeader("Logged Out");
        SuccessMessage::Show("Logout Successful","You have been successfully logged out.  Click <a href='index.php'>Here</a> to return to the main page.");
        Functions::PrintFooter();
    }
    else {
        SessionManager::EndSession();
        header("Location: logout.php?success=1");
    }
?>